<?php 
function get_klien($klien_id){
	$sql = "select * from klien where id = '$klien_id'";
	$result = mysql_query($sql) or die(mysql_error());
	return $result;
}

function get_all_klien(){
	$sql = "select * from klien where status = '1'";
	$result = mysql_query($sql) or die(mysql_error());
	return $result;
}

function get_order($order_id){
	$sql = "select * from order_buku where id= '$order_id'";
	$result = mysql_query($sql) or die(mysql_error());
	return $result;
}

function get_all_order(){
	$sql = "select * from order_buku where status<> '99'";
	$result = mysql_query($sql) or die(mysql_error());
	return $result;
}

function get_Perjanjian($id) {
	$sql = "select * from surat_perjanjian where id = '$id'";
	$result = mysql_query($sql) or die(mysql_error());
	return $result;
}

?>